import $ from 'jquery'

const BASE_URL = 'https://xuejichang.cn/webapi';

export default {
  getBlog(id, callback) {
    $.get(BASE_URL + '/blogger/get', {
      id
    }, (r) => {
      callback && callback(r)
    })
  },
  getBlogList(params, callback) {
    $.get(BASE_URL + '/blogger/search', params, (r) => {
      callback && callback(r)
    })
  }
}